﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using MyFloridaHouse.libSvDTO;

namespace MyFloridaHouse.libSTO
{
	/// <summary>
	/// File Info STO (server transfer object)
	/// </summary>
    [DataContract]
    public class FileInfoSTO
    {
        List<FileInfoDTO> _files;
        string _errorMessage;

		/// <summary>
		/// Object that contains a list of file (blob) information objects.  This object is serialized for the WCF interfact.
		/// </summary>
        public FileInfoSTO()
        {
            _files = new List<FileInfoDTO>();
        }

		/// <summary>
		/// A list of file (blob) objects that represent compressed District Plans that are fixed and stored as ready to use objects.
		/// </summary>
		/// <value>The files.</value>
        [DataMember]
        public List<FileInfoDTO> files
        {
            get { return _files; }
            set { _files = value; }
        }

		/// <summary>
		/// Gets or sets the error message.
		/// </summary>
		/// <value>The error message.</value>
        [DataMember]
        public string errorMessage
        {
            get { return _errorMessage; }
            set { _errorMessage = value; }
        }
    }

}
